<?php
class NTabView extends CWidget{
	public $controllID = 'setting';
	public $actionID;
	public function init(){
	
		$index = $base = $favor = $password = 'turn2';
		switch($this->controllID){
			case 'setting':
				switch($this->actionID){
					case 'index':
						$index = 'turn1';
						break;
					case 'favor':
						$favor = 'turn1';
						break;
					case 'base':
						$base = 'turn1';
						break;
					case 'password':
						$password = 'turn1';
						break;
				}
				break;
		}
		$tab = "<ul class='clearfix'>
			<li>
				<a class='$index' href='/setting'>设置头像</a>
			</li>
			<li>
				<a class='$favor' href='/setting/favor'>我的兴趣</a>
			</li>

			<li>
				<a class='$base' href='/setting/base'>个人资料</a>
			</li>
			<li>
				<a class='$password' href='/setting/password'>修改密码</a>
			</li>
		</ul>";
		echo $tab;
	}
}